import request from '@/utils/request'

/**
 * 获取机构列表
 */
export function getMechanismList (data) {
    return request({
        url: '/MRMS/Api/Organization/GetOrgan',
        method: 'post',
        data
    })
}

/**
 * 新增机构
 */
export function addMechanism (data) {
    return request({
        url: '/MRMS/api/Organization/AddOrgan',
        method: 'post',
        data
    })
}

/**
 * 编辑机构
 */
export function editMechanism (data) {
    return request({
        url: '/MRMS/api/Organization/EditOrgan',
        method: 'post',
        data
    })
}

/**
 * 修改启停
 */
export function changeState (data) {
    return request({
        url: '/MRMS/Api/Organization/EditState',
        method: 'post',
        data
    })
}
